package symbol;

import xyz.SimpleNode;

public class Symbol {

	protected Symbol prev;
	protected String name;
	protected SimpleNode node;

	public Symbol(Symbol p, String name, SimpleNode node){
		prev = p;
		this.setName(name);
		this.setNode(node);
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setNode(SimpleNode node) {
		this.node = node;
	}
	public SimpleNode getNode() {
		return node;
	}
	public Symbol getPrev() {
		return prev;
	}
	public void setPrev(Symbol prev) {
		this.prev = prev;
	}
	public String toString() {
		return getName()+"\n";
	}
	public void dump(){
		System.out.print(toString());
	}
}
